<html>

<head>
<meta name=标题 content="">
<meta name=关键词 content="">
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=Generator content="Microsoft Word 15 (filtered)">
<style>
<!--
 /* Font Definitions */
@font-face
	{font-family:"Courier New";
	panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:Times;
	panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:"Cambria Math";
	panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:DengXian;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:"\@DengXian";}
@font-face
	{font-family:"Microsoft YaHei";
	panose-1:2 11 5 3 2 2 4 2 2 4;}
@font-face
	{font-family:Menlo;
	panose-1:2 11 6 9 3 8 4 2 2 4;}
@font-face
	{font-family:"\@Microsoft YaHei";}
 /* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	text-align:justify;
	text-justify:inter-ideograph;
	font-size:12.0pt;
	font-family:DengXian;}
code
	{font-family:Courier;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
	{margin:0cm;
	margin-bottom:.0001pt;
	text-align:justify;
	text-justify:inter-ideograph;
	text-indent:21.0pt;
	font-size:12.0pt;
	font-family:DengXian;}
p.a, li.a, div.a
	{margin:0cm;
	margin-bottom:.0001pt;
	text-align:justify;
	text-justify:inter-ideograph;
	line-height:200%;
	font-size:12.0pt;
	font-family:"Microsoft YaHei";}
.MsoChpDefault
	{font-family:DengXian;}
 /* Page Definitions */
@page WordSection1
	{size:595.0pt 842.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;
	layout-grid:15.6pt;}
div.WordSection1
	{page:WordSection1;}
 /* List Definitions */
ol
	{margin-bottom:0cm;}
ul
	{margin-bottom:0cm;}
-->
</style>

</head>

<body lang=ZH-CN style='text-justify-trim:punctuation'>

<div class=WordSection1 style='layout-grid:15.6pt'>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-size:14.0pt;line-height:200%;font-family:"Microsoft YaHei"'>mke2fs</span></b></p>

<p class=MsoNormal align=left style='margin-bottom:12.0pt;text-align:left;
text-indent:21.0pt;line-height:200%;text-autospace:none'><span
style='font-family:"Microsoft YaHei";color:black;vertical-align:sub'>在磁盘分区上创建<span
lang=EN-US>ext2</span>、<span lang=EN-US>ext3</span>、<span lang=EN-US>ext4</span>文件系统，默认情况下会创建<span
lang=EN-US>ext2</span>。此命令的适用范围：<span lang=EN-US>RedHat</span>、<span
lang=EN-US>RHEL</span>、<span lang=EN-US>Ubuntu</span>、<span lang=EN-US>CentOS</span>、<span
lang=EN-US>SUSE</span>、<span lang=EN-US>openSUSE</span>、<span lang=EN-US>Fedora</span>。</span></p>

<p class=MsoNormal align=left style='margin-bottom:12.0pt;text-align:left;
text-indent:21.0pt;line-height:200%;text-autospace:none'><span lang=EN-US
style='font-family:"Microsoft YaHei";color:black;vertical-align:sub'>&nbsp;</span></p>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>1</span></b><b><span style='font-family:
"Microsoft YaHei"'>、语法</span></b></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>mke2fs  [</span><span
style='font-family:"Microsoft YaHei"'>选项<span lang=EN-US>]  [</span>设备<span
lang=EN-US>]</span></span></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>mke2fs  [ -c | -l filename ]  [
-b block-size ]  [ -f fragment-size ]  [ -g blocks-per-group ]  [ -G
number-of-groups ]  [ -i bytes-per-inode ]  [ -I inode-size ]  [ -j ]  [-J 
journal-options]  [ -K ]  [ -N number-of-inodes ] [ -n ]  [ -m reserved-blocks-
percentage ]  [ -o creator-os ]  [ -O feature[,...]]  [ -q ]  [ -r 
fs-revision-level]  [ -E  extended-options]  [ -v ]  [ -F ]  [ -L volume-label
]  [ -M last-mounted-directory ] [ -S ]  [ -t fs-type ]  [ -T usage-type ]  [
-U UUID ]  [ -V ]  device  [ blocks-count ]</span></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>mke2fs  -O  journal_dev  [ -b
block-size ]  [ -L volume-label ]  [ -n ]  [ -q ]  [ -v ]  external-journal  [
blocks-count ]</span></p>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>&nbsp;</span></b></p>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>     </span></b><span lang=EN-US
style='font-family:"Microsoft YaHei";color:black;vertical-align:sub'>device</span><span
style='font-family:"Microsoft YaHei";color:black;vertical-align:sub'>是与设备相对应的特殊文件<span
lang=EN-US>(</span>例如：<span lang=EN-US>g/dev/hdXX)</span>。<span lang=EN-US>blocks-count</span>是设备上的块数。如果省略，<span
lang=EN-US>mke2fs</span>会自动配置文件系统的大小。如果调用为<span lang=EN-US>mkfs.ext3</span>，则创建日记，好像指定了“<span
lang=EN-US>-j</span>”选项。新创建的文件系统参数的默认值<span lang=EN-US>(</span>如果没有被下面列出的选项覆盖<span
lang=EN-US>)</span>由“<span lang=EN-US>/etc/mke2fs.conf</span>”配置文件控制。</span></p>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>&nbsp;</span></b></p>

<p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
style='font-family:"Microsoft YaHei"'>2</span></b><b><span style='font-family:
"Microsoft YaHei"'>、选项列表</span></b></p>

<table class=MsoTableGrid border=1 cellspacing=0 cellpadding=0 width="95%"
 style='width:95.0%;margin-left:24.1pt;border-collapse:collapse;border:none'>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  background:#E7E6E6;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>选项</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border:solid windowtext 1.0pt;
  border-left:none;background:#E7E6E6;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>说明</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-V</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>显示命令版本信息</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-b block-size</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>指定文件系统上块的大小（<span
  lang=EN-US>kb</span>），有效值<span lang=EN-US>1024</span>、<span lang=EN-US>2048</span>、<span
  lang=EN-US>4096</span>。如果省略，块大小将由文件系统大小和文件系统的预期使用量<span lang=EN-US>(</span>请参阅<span
  lang=EN-US>-T</span>选项<span lang=EN-US>)</span>来决定。如果块大小为负值，则<span
  lang=EN-US>mke2fs</span>将使用启发式方法来确定适当的块大小，同时限制块大小至少为<span lang=EN-US>block-size</span>字节。这对于某些硬件设备非常有用（这些硬件设备要求块大小为<span
  lang=EN-US>2k</span>的倍数）。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-c</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>坏道检测。如果该选项被指定两次，则使用较慢的读写测试，而不是快速只读测试。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-E extended-options</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>为文件系统设置扩展选项。扩展选项是逗号分隔的，可以使用等号复制。在<span
  lang=EN-US>mke2fs</span>的早期版本中，“<span lang=EN-US>-E</span>”选项以前是“<span
  lang=EN-US>-R</span>”。为了向后兼容，仍然接受“<span lang=EN-US>-R</span>”选项。支持下面的扩展选项：</span></p>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>1</span></b><b><span style='font-family:
  "Microsoft YaHei"'>）<span lang=EN-US>stride=stride-size</span></span></b><span
  style='font-family:"Microsoft YaHei"'>。使用<span lang=EN-US>stride-size</span>个块来配置<span
  lang=EN-US>RAID</span>数组，这是在移动到下一个磁盘之前读取或写入磁盘的块数，有时被称为块大小。这主要影响文件系统元数据在<span
  lang=EN-US>mke2fs</span>时的存放位置，以避免将它们放置在单个磁盘上，这可能会影响性能。块分配程序也可能使用它。</span></p>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>2</span></b><b><span style='font-family:
  "Microsoft YaHei"'>）<span lang=EN-US>stripe-width=stripe-width</span></span></b><span
  style='font-family:"Microsoft YaHei"'>。使用<span lang=EN-US>stripe-width</span>个块来配置<span
  lang=EN-US>RAID</span>数组，这通常是<span lang=EN-US>stride-size *n</span>，其中<span
  lang=EN-US>N</span>是<span lang=EN-US>RAID</span>中包含数据磁盘的数目<span lang=EN-US>(</span>例如，对于<span
  lang=EN-US>RAID 5</span>，有一个奇偶校验磁盘，所以<span lang=EN-US>N</span>将是数组中磁盘数量减去<span
  lang=EN-US>1)</span>，这允许块分配器在写入数据时防止修改<span lang=EN-US>RAID</span>中的奇偶。</span></p>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>3</span></b><b><span style='font-family:
  "Microsoft YaHei"'>）<span lang=EN-US>resize=max-online-resize</span></span></b><span
  style='font-family:"Microsoft YaHei"'>。预留足够的空间，以便块组描述符能够增长以支持具有在线调整块大小的文件系统。</span></p>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>4</span></b><b><span style='font-family:
  "Microsoft YaHei"'>）<span lang=EN-US>lazy_itable_init[= &lt;0 to disable, 1
  to enable&gt;]</span>。</span></b><span style='font-family:"Microsoft YaHei"'>如果使能了，并且也启用了<span
  lang=EN-US>uninit_bg</span>功能，那么<span lang=EN-US>inode</span>表将不会被<span
  lang=EN-US>mke2fs</span>完全初始化。这明显加快了文件系统的初始化速度，但它要求内核在文件系统首次挂载时在后台完成对文件系统的初始化。如果省略了选项值，则默认为<span
  lang=EN-US>1</span>以启用延迟<span lang=EN-US>inode</span>表初始化。</span></p>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>5</span></b><b><span style='font-family:
  "Microsoft YaHei"'>）<span lang=EN-US>test_fs</span>。</span></b><span
  style='font-family:"Microsoft YaHei"'>在文件系统超级块中设置一个标志，指示可以使用试验性内核代码<span
  lang=EN-US>(</span>如<span lang=EN-US>ext4dev</span>文件系统<span lang=EN-US>)</span>挂载它。</span></p>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>6</span></b><b><span style='font-family:
  "Microsoft YaHei"'>）<span lang=EN-US>discard</span>。</span></b><span
  style='font-family:"Microsoft YaHei"'>尝试在<span lang=EN-US>mkfs</span>时丢弃块<span
  lang=EN-US>(</span>在固态设备和稀疏<span lang=EN-US>/</span>稀疏的<span lang=EN-US>Provi-Sied</span>存储中丢弃块是有用的<span
  lang=EN-US>)</span>。当设备宣传丢弃数据时，将所有尚未归零的<span lang=EN-US>inode</span>表标记为零。这大大加快了文件系统初始化的速度。此设置为默认设置。</span></p>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>7</span></b><b><span style='font-family:
  "Microsoft YaHei"'>）<span lang=EN-US>nodiscard</span>。</span></b><span
  style='font-family:"Microsoft YaHei"'>在<span lang=EN-US>mkfs</span>时不会丢弃块。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-f fragment-size</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>设置文件系统碎片的大小。<span
  lang=EN-US>mke2fs</span>接受“<span lang=EN-US>-f</span>”选项，但目前忽略它，因为第二个扩展文件系统还不支持片段</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-F</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>强制<span
  lang=EN-US>mke2fs</span>创建文件系统，即使指定的设备不是块特殊设备上的分区，或者其他参数没有意义。。由于这个指令很危险，因此必须确认两次</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-g blocks-per-group</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>指定块组中的块数。用户通常没有任何理由设置此参数，因为默认设置对文件系统是最佳的。开发测试用例的开发人员通常使用此选项。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-G number-of-groups</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>指定组的数量，这些组将被打包在一起用来创建更大的虚拟块组。组数必须是<span
  lang=EN-US>2</span>的幂，并且只能在启用<span lang=EN-US>Flex_BG</span>文件系统功能时指定。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-i bytes-per-inode</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>mke2fs</span><span style='font-family:
  "Microsoft YaHei"'>为磁盘上每一个<span lang=EN-US>inode</span>字节创建一个<span
  lang=EN-US>inode</span>。<span lang=EN-US>bytes/inode</span>比越大，创建的<span
  lang=EN-US>inode</span>就越少。这个值一般不应该小于文件系统的块大小，因为在这种情况下，将产生比以往任何时候都多的<span
  lang=EN-US>inode</span>。在文件系统创建后不可能扩展该文件系统上的<span lang=EN-US>inode</span>数，因此要小心确定此参数的正确值。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-I inode-size</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>指定每个<span
  lang=EN-US>inode</span>的大小<span lang=EN-US>(</span>以字节为单位<span lang=EN-US>)</span>。<span
  lang=EN-US>mke2fs</span>默认创建<span lang=EN-US>256</span>字节的<span lang=EN-US>inode</span>。在<span
  lang=EN-US>2.6.10</span>之后的内核和一些早期的供应商内核中，可以使用大于<span lang=EN-US>128</span>个字节的<span
  lang=EN-US>inode</span>存储扩展属性以提高性能。<span lang=EN-US>inode</span>表将消耗，这将减少文件系统中的可用空间，也会对性能产生负面影响。大型<span
  lang=EN-US>inode</span>中存储的扩展属性在旧内核中是不可见的，这样的文件系统将根本无法用<span lang=EN-US>2.4</span>内核挂载。在创建文件系统之后，不可能更改此值。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-j</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>创建<span
  lang=EN-US>ext3</span>文件系统。如果没有指定“<span lang=EN-US>-j</span>”选项，则默认日志参数将用于创建存储在文件系统中的适当大小的日志</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-J journal-options</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>使用命令行中指定的选项创建<span
  lang=EN-US>ext 3</span>日志。选项是逗号分隔的，可以使用相等号对参数赋值。支持以下两个参数，而且这两个参数只能指定一个。</span></p>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>size=journal-size</span></b><span
  style='font-family:"Microsoft YaHei"'>。指定内部日志的大小，单位是<span lang=EN-US>MB</span>。日志的大小必须至少为<span
  lang=EN-US>1024</span>个文件系统块<span lang=EN-US>(</span>如果使用<span lang=EN-US>1k</span>块，则为<span
  lang=EN-US>1MB</span>，如果使用<span lang=EN-US>4k</span>块，则为<span lang=EN-US>4MB)</span>，并且可能不超过<span
  lang=EN-US>102</span>，<span lang=EN-US>400</span>个文件系统块。</span></p>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>device=external-journal</span></b><span
  style='font-family:"Microsoft YaHei"'>。将文件系统附加到位于指定“<span lang=EN-US>external-journal</span>“的日志块设备上，“<span
  lang=EN-US>external-journal</span>“必须已使用以下命令创建：<b><span lang=EN-US>mke2fs -O
  journal_dev external-journal</span></b>。请注意，“<span lang=EN-US>external-journal</span>“必须具有与新文件系统相同的块大小。此外，虽然支持将多个文件系统附加到单个“<span
  lang=EN-US>external-journal</span>“，但<span lang=EN-US>linux</span>内核和<span
  lang=EN-US>e2fsck(8)</span>目前还不支持共享“<span lang=EN-US>external-journal</span>“。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-K</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>保留，不要试图在<span
  lang=EN-US>mkfs</span>时丢弃块</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-l filename</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>从文件中读取磁盘坏块信息。注意，必须使用<span
  lang=EN-US>mke2fs</span>使用的块大小来生成坏块列表中的块号。因此，<span lang=EN-US>mke2fs</span>的<span
  lang=EN-US>-c</span>选项是一种简单得多且不容易出错的方法，用于在格式化磁盘之前检查是否存在错误块，因为<span
  lang=EN-US>mke2fs</span>将自动将正确的参数传递给坏块程序。</span></p>
  </td>
 </tr>
 <tr style='height:32.35pt'>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt;height:32.35pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-L new-volume-label</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:32.35pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>设置文件系统卷标，卷标最大<span
  lang=EN-US>16</span>个字节</span></p>
  </td>
 </tr>
 <tr style='height:32.35pt'>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt;height:32.35pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-m reserved-blocks-percentage</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt;height:32.35pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>指定为超级用户保留的文件系统块的百分比。这样可以避免碎片，并允许<span
  lang=EN-US>root</span>有用的守护进程<span lang=EN-US>(</span>如<span lang=EN-US>syzabd(8)</span>在非特权进程被阻止写入文件系统后继续正确运行。默认百分比为<span
  lang=EN-US>5%</span>。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-M last-mounted-directory</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>设置文件系统最后的挂载目录。一些实用程序可以从上一次挂载目录中选择键，以确定文件系统应该安装在何处。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-n</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>不创建文件系统，而是演示创建文件系统时该怎么做</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-N number-of-inodes</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>重写应为文件系统保留的<span
  lang=EN-US>inode</span>数量的默认值。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-o creator-os</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>重写文件系统的<span
  lang=EN-US>“creator operating system”</span>字段的默认值。默认情况下，<span lang=EN-US>creator</span>字段设置为<span
  lang=EN-US>mke2fs</span>编译出的操作系统的名称。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-O feature[,...]</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>创建具有给定功能的文件系统<span
  lang=EN-US>(</span>文件系统选项<span lang=EN-US>)</span>，覆盖默认的文件系统选项。默认情况下启用的特性由<span
  lang=EN-US>base_features</span>关系指定，或者在<span lang=EN-US>/etc/mke2fs.conf</span>配置文件中的<span
  lang=EN-US>[defaults]</span>部分中指定，或者在<span lang=EN-US>-T</span>选项指定的用法类型的<span
  lang=EN-US>[fs_type]</span>子节中指定，并由文件系统的<span lang=EN-US>[fs_types]</span>子节中的特性关系进一步修改使用类型。</span></p>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>文件系统特性集将使用此选项指定的特性集进行进一步编辑，或者如果未给出此选项，则由正在创建的文件系统类型的<span
  lang=EN-US>default_features</span>关系进行编辑，或者在配置文件的<span lang=EN-US>[defaults]</span>部分中进行编辑。</span></p>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>文件系统功能集由一系列要启用的以逗号分隔的特性组成。要禁用一个功能，只需在特征名前加上插入符号<span
  lang=EN-US>(‘^’)</span>。伪文件系统功能<span lang=EN-US>“none”</span>将清除所有文件系统功能。<span
  lang=EN-US>feature</span>可以是以下内容：</span></p>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>1</span></b><b><span style='font-family:
  "Microsoft YaHei"'>）<span lang=EN-US>dir_index</span></span></b><span
  style='font-family:"Microsoft YaHei"'>。使用<span lang=EN-US>hashed b-trees</span>来加快大目录中的查找速度</span></p>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>2</span></b><b><span style='font-family:
  "Microsoft YaHei"'>）<span lang=EN-US>extent</span></span></b><span
  style='font-family:"Microsoft YaHei"'>。使用间<span lang=EN-US>extent</span>块来存储<span
  lang=EN-US>inode</span>中数据块的位置。这是一种更有效的编码，它加快了文件系统的访问速度，特别是对于大型文件。</span></p>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>3</span></b><b><span style='font-family:
  "Microsoft YaHei"'>）<span lang=EN-US>filetype</span></span></b><span
  style='font-family:"Microsoft YaHei"'>。将文件类型信息存储在目录条目中。</span></p>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>4</span></b><b><span style='font-family:
  "Microsoft YaHei"'>）<span lang=EN-US>flex_bg</span></span></b><span
  style='font-family:"Microsoft YaHei"'>。允许将每个块组元数据<span lang=EN-US>(</span>分配位图和<span
  lang=EN-US>inode</span>表<span lang=EN-US>)</span>放置在存储介质上的任何位置。此外，<span
  lang=EN-US>mke2fs</span>将每个块组元数据放在每个<span lang=EN-US>“flx_bg group”</span>的第一个块组中。可以使用<span
  lang=EN-US>-G</span>选项指定<span lang=EN-US>flx_bg</span>组的大小。</span></p>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>5</span></b><b><span style='font-family:
  "Microsoft YaHei"'>）<span lang=EN-US>has_journal</span></span></b><span
  style='font-family:"Microsoft YaHei"'>。创建<span lang=EN-US>ext 3</span>日志，和“<span
  lang=EN-US>-j</span>”选项一样。</span></p>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>6</span></b><b><span style='font-family:
  "Microsoft YaHei"'>）<span lang=EN-US>journal_dev</span></span></b><span
  style='font-family:"Microsoft YaHei"'>。在给定设备上创建外部<span lang=EN-US>ext 3</span>日志，而不是常规<span
  lang=EN-US>ext 2</span>文件系统。</span></p>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>7</span></b><b><span style='font-family:
  "Microsoft YaHei"'>）<span lang=EN-US>large_file</span></span></b><span
  style='font-family:"Microsoft YaHei"'>。文件系统可以包含大于<span lang=EN-US>2GB</span>的文件。<span
  lang=EN-US>(</span>创建文件<span lang=EN-US>&gt;2GB</span>时，现代内核会自动设置此特性。<span
  lang=EN-US>)</span></span></p>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>8</span></b><b><span style='font-family:
  "Microsoft YaHei"'>）<span lang=EN-US>resize_inode</span></span></b><span
  style='font-family:"Microsoft YaHei"'>。保留空间，这样块组描述符表在将来可能会增长。对于使用<span
  lang=EN-US>regze2fs</span>在线调整大小很有用。默认情况下，<span lang=EN-US>mke2fs</span>将尝试预留足够的空间，以便文件系统可以增长到其初始大小的<span
  lang=EN-US>1024</span>倍。</span></p>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>9</span></b><b><span style='font-family:
  "Microsoft YaHei"'>）<span lang=EN-US>sparse_super</span></span></b><span
  style='font-family:"Microsoft YaHei"'>。创建一个较少<span lang=EN-US>SuperBlock</span>备份的文件系统（在大型文件系统上节省空间）。</span></p>
  <p class=MsoNormal style='line-height:200%'><b><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>10</span></b><b><span style='font-family:
  "Microsoft YaHei"'>）<span lang=EN-US>uninit_bg</span></span></b><span
  style='font-family:"Microsoft YaHei"'>。在不初始化所有块组的情况下创建一个文件系统。这个特性还允许校验和功能，以及每个块组中<span
  lang=EN-US>highest-inode-used</span>统计信息。这个特性可以显著加快文件系统的创建时间<span lang=EN-US>(</span>如果启用了<span
  lang=EN-US>lazable_init)</span>，还可以大大减少<span lang=EN-US>e2fsck</span>的时间。它只受最近<span
  lang=EN-US>Linux</span>内核中的<span lang=EN-US>ext 4</span>文件系统的支持。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-q</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>静默执行，通常用在脚本文件中。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-r revision</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>为新的文件系统设置文件系统修订号。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-S</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>只写超级块和组描述符。如果所有的超级块和备份超级块都损坏了，并且需要一种最后的恢复方法，这是很有用的。它导致<span
  lang=EN-US>mke2fs</span>重新初始化超级块和组描述符，同时不触及<span lang=EN-US>inode</span>表、块和<span
  lang=EN-US>inode</span>位图。<span lang=EN-US>e2fsck</span>程序应该在使用此选项后立即运行，并且无法保证任何数据都是可挽救的。使用此选项时指定正确的文件系统块大小至关重要，否则不可能恢复。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-t fs-type</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>指定文件系统类型，默认<span
  lang=EN-US>ext2</span>。此选项根据“<span lang=EN-US>/etc/mke2fs.conf(5)</span>”中的<span
  lang=EN-US>fstypes</span>配置节控制默认使用哪些文件系统选项</span></p>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>如果使用“<span
  lang=EN-US>-O</span>”选项显式地添加或删除应该在新创建的文件系统中设置的文件系统选项，则所请求的<span lang=EN-US>fs-type</span>可能不支持所产生的文件系统。<span
  lang=EN-US>(</span>例如，<span lang=EN-US>“mke2fs -t ext3 -O extents /dev/sdXX”</span>将创建一个不受<span
  lang=EN-US>ext3</span>实现支持的文件系统。 <span lang=EN-US>“&quot;mke2fs -t ext3
  -O^has_journal /dev/hdXX”</span>将创建一个没有日志的文件系统，因此<span lang=EN-US>Linux</span>内核中的<span
  lang=EN-US>ext 3</span>文件系统代码将不支持该文件系统。<span lang=EN-US>)</span></span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-T usage-type[,...]</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>指定文件系统的使用方式，以便<span
  lang=EN-US>mke2fs</span>可以选择最佳的文件系统参数。所支持的<span lang=EN-US>usage-type</span>在配置文件“<span
  lang=EN-US>/etc/mke2fs.conf(5)</span>”中定义。用户可以使用逗号分隔列表指定一个或多个<span
  lang=EN-US>usage-type</span>。</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-U</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>用指定<span
  lang=EN-US>UUID</span>创建系统</span></p>
  </td>
 </tr>
 <tr>
  <td width="28%" valign=top style='width:28.58%;border:solid windowtext 1.0pt;
  border-top:none;padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span lang=EN-US
  style='font-family:"Microsoft YaHei"'>-v</span></p>
  </td>
  <td width="71%" valign=top style='width:71.42%;border-top:none;border-left:
  none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;
  padding:0cm 5.4pt 0cm 5.4pt'>
  <p class=MsoNormal style='line-height:200%'><span style='font-family:"Microsoft YaHei"'>显示详细执行过程</span></p>
  </td>
 </tr>
</table>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>&nbsp;</span></p>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>3</span><span style='font-family:"Microsoft YaHei"'>、实例</span></p>

<p class=MsoNormal style='text-indent:21.0pt;line-height:200%'><span
style='font-family:"Microsoft YaHei"'>创建<span lang=EN-US>ext2</span>文件系统</span></p>

<table class=a0 border=1 cellspacing=0 cellpadding=0 width="95%"
 style='width:95.0%;margin-left:24.1pt;border-collapse:collapse;border:none'>
 <tr style='height:14.9pt'>
  <td width=836 valign=top style='width:836.15pt;border:solid windowtext 1.0pt;
  background:#E7E6E6;padding:0cm 5.4pt 0cm 5.4pt;height:14.9pt'>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>[root@localhost
  ~]# <b>mknod /dev/sdb4 b 1 1      //</b></span></code><code><b><span
  style='font-size:10.0pt;line-height:200%;font-family:DengXian'>创建一个设备</span></b></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>&nbsp;</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>[root@localhost
  ~]# <b>mke2fs /dev/sdb4          //</b></span></code><code><b><span
  style='font-size:10.0pt;line-height:200%;font-family:DengXian'>创建文件系统，没有指定类型，默认是</span></b></code><code><b><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo'>ext2</span></b></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>mke2fs 1.41.12
  (17-May-2010)</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span style='font-size:
  10.0pt;line-height:200%;font-family:DengXian'>文件系统标签</span></code><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo'>=</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span style='font-size:
  10.0pt;line-height:200%;font-family:DengXian'>操作系统</span></code><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo'>:Linux</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span style='font-size:
  10.0pt;line-height:200%;font-family:DengXian'>块大小</span></code><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo'>=1024
  (log=0)</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span style='font-size:
  10.0pt;line-height:200%;font-family:DengXian'>分块大小</span></code><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo'>=1024
  (log=0)</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>Stride=0 blocks,
  Stripe width=0 blocks</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>4096 inodes,
  16384 blocks</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>819 blocks
  (5.00%) reserved for the super user</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span style='font-size:
  10.0pt;line-height:200%;font-family:DengXian'>第一个数据块</span></code><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo'>=1</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>Maximum
  filesystem blocks=16777216</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>2 block groups</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>8192 blocks per
  group, 8192 fragments per group</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>2048 inodes per
  group</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>Superblock
  backups stored on blocks: </span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>    8193</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span style='font-size:
  10.0pt;line-height:200%;font-family:DengXian'>正在写入</span></code><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo'>inode</span></code><code><span
  style='font-size:10.0pt;line-height:200%;font-family:DengXian'>表</span></code><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo'>: </span></code><code><span
  style='font-size:10.0pt;line-height:200%;font-family:DengXian'>完成</span></code><code><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo'>                           
  </span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>Writing
  superblocks and filesystem accounting information: </span></code><code><span
  style='font-size:10.0pt;line-height:200%;font-family:DengXian'>完成</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>This filesystem
  will be automatically checked every 26 mounts or</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>180 days,
  whichever comes first.  Use tune2fs -c or -i to override. </span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>&nbsp;</span></code></p>
  <p class=MsoNormal><code><span lang=EN-US style='font-size:10.0pt;font-family:
  Menlo'>[root@localhost ~]#<b> mount /dev/sdb4 /media/disk            //</b></span></code><code><b><span
  style='font-size:10.0pt;font-family:DengXian'>将文件系统挂载</span></b></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>&nbsp;</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>[root@localhost
  ~]# <b>df </b></span></code><code><b><span lang=EN-US style='font-size:10.0pt;
  line-height:200%;font-family:Helvetica'>–</span></b></code><code><b><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo'>T     
  //</span></b></code><code><b><span style='font-size:10.0pt;line-height:200%;
  font-family:DengXian'>查看已经使用的文件系统</span></b></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>Filesystem                  
  Type    1K-blocks     Used Available Use% Mounted on</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>/dev/mapper/VolGroup-lv_root
  ext4     25552764 13250844  11003900  55% /</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>tmpfs                       
  tmpfs      829656      268    829388   1% /dev/shm</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>/dev/sda1                   
  ext4       495844    32996    437248   8% /boot</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>/dev/sr0                    
  iso9660     56618    56618         0 100% /media/VBox_GAs_5.2.18</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>/dev/sdb1                   
  vfat        15863      140     14904   1% /media/disk</span></code></p>
  <p class=MsoNormal style='line-height:200%'><code><b><span lang=EN-US
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'>/dev/sdb4                   
  ext2        15863      140     14904   1% /media/disk            //</span></b></code><code><b><span
  style='font-size:10.0pt;line-height:200%;font-family:DengXian'>可以看到这里是</span></b></code><code><b><span
  lang=EN-US style='font-size:10.0pt;line-height:200%;font-family:Menlo'>ext2</span></b></code><code><b><span
  style='font-size:10.0pt;line-height:200%;font-family:DengXian'>类型的</span></b></code><code><span
  style='font-size:10.0pt;line-height:200%;font-family:Menlo'> </span></code></p>
  </td>
 </tr>
</table>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>     </span></p>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>&nbsp;</span></p>

<p class=MsoNormal style='line-height:200%'><span lang=EN-US style='font-family:
"Microsoft YaHei"'>&nbsp;</span></p>

<p class=MsoNormal align=center style='text-align:center;line-height:200%'><span
lang=EN-US style='font-family:"Microsoft YaHei"'>Copyright@david 
zhytwj2018@163.com</span></p>

</div>

</body>

</html>
